package com.boilermaker.mybatislearning.dao;

import com.boilermaker.mybatislearning.model.UserInfo;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Stack;

@Mapper
public interface UserInfoMapperXML {

    List<UserInfo> selectAll();

    Integer insertUser(UserInfo userInfo);

    Integer deleteUser(Integer id);

    Integer updateUser(UserInfo userInfo);

    List<UserInfo> queryAllUserByLike(String key);

    void insertUserByCondition(UserInfo userInfo);

    List<UserInfo> selectUserByCondition(UserInfo userInfo);

    void updateUserByCondition(UserInfo userInfo);

    void deleteByIds(List<Integer> ids);

    void insertUsers(List<UserInfo> users);
}
